回去看linux的指令

    SYNC CL : MSM8953 @ CL#:12212299
     PROJECT PATH : // Platform / N / NILE / COMBINATION / MSM8953
Cross Reference: Android.mkxref: /android/vendor/samsung/variant/audio/hal/Android.mk
HomeHistoryAnnotateLine#NavigateRawDownload  only in /android/vendor/samsung/variant/audio/hal/1ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
2
3LOCAL_PATH := $(call my-dir)
4
5include $(CLEAR_VARS)
6
7LOCAL_ARM_MODE := arm
8
9AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM)
10
11ifneq ($(filter msm8974 msm8226 msm8610 apq8084 msm8994 msm8992 msm8996 msmcobalt,$(TARGET_BOARD_PLATFORM)),)
12    # B-family platform uses msm8974 code base
13    AUDIO_PLATFORM = msm8974
14    MULTIPLE_HW_VARIANTS_ENABLED := true
15ifneq ($(filter msm8610,$(TARGET_BOARD_PLATFORM)),)
16    LOCAL_CFLAGS := -DPLATFORM_MSM8610
17endif
18ifneq ($(filter msm8226,$(TARGET_BOARD_PLATFORM)),)
19    LOCAL_CFLAGS := -DPLATFORM_MSM8x26
20endif
21ifneq ($(filter apq8084,$(TARGET_BOARD_PLATFORM)),)
22    LOCAL_CFLAGS := -DPLATFORM_APQ8084
23endif
24ifneq ($(filter msm8994,$(TARGET_BOARD_PLATFORM)),)
25    LOCAL_CFLAGS := -DPLATFORM_MSM8994
26endif
27ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),)
28    LOCAL_CFLAGS := -DPLATFORM_MSM8994
29endif
30ifneq ($(filter msm8996,$(TARGET_BOARD_PLATFORM)),)
31    LOCAL_CFLAGS := -DPLATFORM_MSM8996
32endif
33ifneq ($(filter msmcobalt,$(TARGET_BOARD_PLATFORM)),)
34    LOCAL_CFLAGS := -DPLATFORM_MSMCOBALT
35endif
36endif
37
38ifneq ($(filter msm8916 msm8909 msm8952 msm8937 thorium msm8953 msmgold msmfalcon,$(TARGET_BOARD_PLATFORM)),)
39    AUDIO_PLATFORM = msm8916
40    MULTIPLE_HW_VARIANTS_ENABLED := true
41    LOCAL_CFLAGS := -DPLATFORM_MSM8916
42ifneq ($(filter msm8909,$(TARGET_BOARD_PLATFORM)),)
43    LOCAL_CFLAGS := -DPLATFORM_MSM8909
44endif
45ifneq ($(filter msm8937,$(TARGET_BOARD_PLATFORM)),)
46  LOCAL_CFLAGS := -DPLATFORM_MSM8937
47endif
48ifneq ($(filter msmfalcon,$(TARGET_BOARD_PLATFORM)),)
49    LOCAL_CFLAGS := -DPLATFORM_MSMFALCON
50endif
51endif
52
53LOCAL_SRC_FILES := 54    audio_hw.c 55    voice.c 56    platform_info.c 57    $(AUDIO_PLATFORM)/platform.c
58
59#add for samsung
60LOCAL_SRC_FILES += sec_audio/audio_hw_sec.c
61LOCAL_SRC_FILES += sec_audio/audio_hw_factory.c
62
63LOCAL_SRC_FILES += audio_extn/audio_extn.c 64                   audio_extn/utils.c
65LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
66LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
67
68ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_EDID)),true)
69    LOCAL_CFLAGS += -DHDMI_EDID
70    LOCAL_SRC_FILES += edid.c
71endif
72
73ifeq ($(strip $(AUDIO_USE_LL_AS_PRIMARY_OUTPUT)),true)
74    LOCAL_CFLAGS += -DUSE_LL_AS_PRIMARY_OUTPUT
75endif
76
77ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true)
78    LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED
79endif
80
81ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ANC_HEADSET)),true)
82    LOCAL_CFLAGS += -DANC_HEADSET_ENABLED
83endif
84
85ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HIFI_AUDIO)),true)
86    LOCAL_CFLAGS += -DHIFI_AUDIO_ENABLED
87endif
88
89ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VBAT_MONITOR)),true)
90    LOCAL_CFLAGS += -DVBAT_MONITOR_ENABLED
91endif
92
93ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FLUENCE)),true)
94    LOCAL_CFLAGS += -DFLUENCE_ENABLED
95endif
96
97ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
98    LOCAL_CFLAGS += -DAFE_PROXY_ENABLED
99endif
100
101ifeq ($(strip $(AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE)),true)
102    LOCAL_CFLAGS += -DKPI_OPTIMIZE_ENABLED
103endif
104
105ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_FMRADIO,TRUE))
106ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true)
107    LOCAL_CFLAGS += -DFM_POWER_OPT
108    LOCAL_SRC_FILES += audio_extn/fm.c
109endif
110endif
111
112ifeq ($(strip $(AUDIO_FEATURE_ENABLED_USB_TUNNEL_AUDIO)),true)
113    LOCAL_CFLAGS += -DUSB_HEADSET_ENABLED
114    LOCAL_SRC_FILES += audio_extn/usb.c
115endif
116
117ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HFP)),true)
118    LOCAL_CFLAGS += -DHFP_ENABLED
119    LOCAL_SRC_FILES += audio_extn/hfp.c
120endif
121
122ifeq ($(strip $(AUDIO_FEATURE_ENABLED_CUSTOMSTEREO)),true)
123    LOCAL_CFLAGS += -DCUSTOM_STEREO_ENABLED
124endif
125
126ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SSR)),true)
127    LOCAL_CFLAGS += -DSSR_ENABLED
128    LOCAL_SRC_FILES += audio_extn/ssr.c
129    LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/surround_sound_3mic/
130    LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/common/inc/
131endif
132
133ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS)),true)
134    LOCAL_CFLAGS += -DMULTI_VOICE_SESSION_ENABLED
135    LOCAL_SRC_FILES += voice_extn/voice_extn.c
136
137ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INCALL_MUSIC)),true)
138    LOCAL_CFLAGS += -DINCALL_MUSIC_ENABLED
139endif
140endif
141
142ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_VOIP)),true)
143    LOCAL_CFLAGS += -DCOMPRESS_VOIP_ENABLED
144    LOCAL_SRC_FILES += voice_extn/compress_voip.c
145endif
146
147ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true)
148    LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED
149endif
150
151ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPKR_PROTECTION)),true)
152    LOCAL_CFLAGS += -DSPKR_PROT_ENABLED
153    LOCAL_SRC_FILES += audio_extn/spkr_protection.c
154endif
155
156ifdef MULTIPLE_HW_VARIANTS_ENABLED
157    LOCAL_CFLAGS += -DHW_VARIANTS_ENABLED
158    LOCAL_SRC_FILES += $(AUDIO_PLATFORM)/hw_info.c
159endif
160
161ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_CAPTURE)),true)
162    LOCAL_CFLAGS += -DCOMPRESS_CAPTURE_ENABLED
163    LOCAL_SRC_FILES += audio_extn/compress_capture.c
164endif
165
166ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DTS_EAGLE)),true)
167    LOCAL_CFLAGS += -DDTS_EAGLE
168    LOCAL_SRC_FILES += audio_extn/dts_eagle.c
169endif
170
171ifeq ($(strip $(DOLBY_DDP)),true)
172    LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED
173    LOCAL_SRC_FILES += audio_extn/dolby.c
174endif
175
176ifeq ($(strip $(DS1_DOLBY_DAP)),true)
177    LOCAL_CFLAGS += -DDS1_DOLBY_DAP_ENABLED
178ifneq ($(strip $(DOLBY_DDP)),true)
179    LOCAL_SRC_FILES += audio_extn/dolby.c
180endif
181endif
182
183ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER)),true)
184    LOCAL_CFLAGS += -DFLAC_OFFLOAD_ENABLED
185    LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED
186endif
187
188ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD)),true)
189    LOCAL_CFLAGS += -DVORBIS_OFFLOAD_ENABLED
190    LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED
191endif
192
193ifeq ($(strip $(AUDIO_FEATURE_ENABLED_WMA_OFFLOAD)),true)
194    LOCAL_CFLAGS += -DWMA_OFFLOAD_ENABLED
195    LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED
196endif
197
198ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD)),true)
199    LOCAL_CFLAGS += -DALAC_OFFLOAD_ENABLED
200    LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED
201endif
202
203ifeq ($(strip $(AUDIO_FEATURE_ENABLED_APE_OFFLOAD)),true)
204    LOCAL_CFLAGS += -DAPE_OFFLOAD_ENABLED
205    LOCAL_CFLAGS += -DCOMPRESS_METADATA_NEEDED
206endif
207
208ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true)
209       LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24
210endif
211
212ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true)
213    LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED
214endif
215
216ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DEV_ARBI)),true)
217    LOCAL_CFLAGS += -DDEV_ARBI_ENABLED
218    LOCAL_SRC_FILES += audio_extn/dev_arbi.c
219endif
220
221ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true)
222    LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY
223endif
224
225ifeq ($(strip $(AUDIO_FEATURE_ENABLED_ACDB_LICENSE)), true)
226    LOCAL_CFLAGS += -DDOLBY_ACDB_LICENSE
227endif
228
229ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP)),true)
230    LOCAL_CFLAGS += -DDS2_DOLBY_DAP_ENABLED
231    LOCAL_CFLAGS += -DDS1_DOLBY_DDP_ENABLED
232ifneq ($(strip $(DOLBY_DDP)),true)
233    ifneq ($(strip $(DS1_DOLBY_DAP)),true)
234        LOCAL_SRC_FILES += audio_extn/dolby.c
235    endif
236endif
237endif
238
239ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH)),true)
240    LOCAL_CFLAGS += -DHDMI_PASSTHROUGH_ENABLED
241    LOCAL_SRC_FILES += audio_extn/passthru.c
242endif
243
244ifeq ($(strip $(AUDIO_FEATURE_ENABLED_KEEP_ALIVE)),true)
245    LOCAL_CFLAGS += -DKEEP_ALIVE_ENABLED
246    LOCAL_SRC_FILES += audio_extn/keep_alive.c
247endif
248
249ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SOURCE_TRACKING)),true)
250    LOCAL_CFLAGS += -DSOURCE_TRACKING_ENABLED
251    LOCAL_SRC_FILES += audio_extn/source_track.c
252endif
253
254ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SPLIT_A2DP)),true)
255    LOCAL_CFLAGS += -DSPLIT_A2DP_ENABLED
256    LOCAL_SRC_FILES += audio_extn/a2dp.c
257endif
258
259LOCAL_SHARED_LIBRARIES := 260    libpower 261    liblog 262    libcutils 263    libtinyalsa 264    libtinycompress 265    libaudioroute 266    libdl 267    libaudioutils 268    libhardware 269    libexpat
270
271ifneq (,$(filter $(call spf_get,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_SPEAKER_AMP), 9890 9895 9896 9897))
272ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_SPEAKER_AMP,9896))
273    LOCAL_CFLAGS += -DUSE_TFA9896
274endif
275ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_SPEAKER_AMP,9890))
276    LOCAL_CFLAGS += -DUSE_TFA9890
277endif
278    LOCAL_SRC_FILES  += audio_extn/tfa98xx_amp.c
279    LOCAL_CFLAGS += -DSEC_AUDIO_SPEAKER_AMP_NXP
280
281    LOCAL_SHARED_LIBRARIES += 282        libtfa98xx
283
284    LOCAL_C_INCLUDES += 285        vendor/samsung/frameworks/audio/tfa_amp
286endif
287
288LOCAL_C_INCLUDES += 289    external/tinyalsa/include 290    external/tinycompress/include 291    system/media/audio_utils/include 292    external/expat/lib 293    $(call include-path-for, audio-route) 294    $(call include-path-for, audio-effects) 295    $(LOCAL_PATH)/$(AUDIO_PLATFORM) 296    $(LOCAL_PATH)/audio_extn 297    $(LOCAL_PATH)/voice_extn
298
299ifeq ($(strip $(AUDIO_FEATURE_ENABLED_LISTEN)),true)
300    LOCAL_CFLAGS += -DAUDIO_LISTEN_ENABLED
301    LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-listen
302    LOCAL_SRC_FILES += audio_extn/listen.c
303endif
304
305ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXT_HDMI)),true)
306    LOCAL_CFLAGS += -DAUDIO_EXTERNAL_HDMI_ENABLED
307ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_PASSTHROUGH)),true)
308    LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-parsers
309    LOCAL_SHARED_LIBRARIES += libaudioparsers
310endif
311endif
312
313ifeq ($(strip $(BOARD_SUPPORTS_SOUND_TRIGGER)),true)
314    LOCAL_CFLAGS += -DSOUND_TRIGGER_ENABLED
315    LOCAL_CFLAGS += -DSOUND_TRIGGER_PLATFORM_NAME=$(TARGET_BOARD_PLATFORM)
316    LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/sound_trigger
317    LOCAL_SRC_FILES += audio_extn/soundtrigger.c
318endif
319
320ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUXPCM_BT)),true)
321    LOCAL_CFLAGS += -DAUXPCM_BT_ENABLED
322endif
323
324ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PM_SUPPORT)),true)
325    LOCAL_CFLAGS += -DPM_SUPPORT_ENABLED
326    LOCAL_SRC_FILES += audio_extn/pm.c
327    LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/libperipheralclient/inc
328    LOCAL_SHARED_LIBRARIES += libperipheral_client
329endif
330
331ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_SEAMLESS_CHIPSET_VERSION,DBMD2))
332    LOCAL_SRC_FILES += voice_seamless/cvq_stream.c
333    LOCAL_C_INCLUDES += $(LOCAL_PATH)/voice_seamless
334endif
335
336#libaudio_soundtrigger
337LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/soundtrigger_hal/audio_soundtrigger
338LOCAL_SHARED_LIBRARIES += libaudio_soundtrigger
339
340ifneq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_RECORDALIVE_LIB_VERSION,))
341    LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/recordalive
342    LOCAL_SHARED_LIBRARIES += librecordalive
343else
344    LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/preprocess
345    LOCAL_SHARED_LIBRARIES += libSamsungPreProcess
346endif
347
348ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_SOUNDBOOSTER,TRUE))
349    LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/postprocess
350    LOCAL_SHARED_LIBRARIES += libSamsungPostProcess
351endif
352
353ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_VOICE_NOTE_PCM_RECORDING,TRUE))
354    LOCAL_SHARED_LIBRARIES += libSamsungPostProcessConvertor
355    LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/postprocessconvertor
356endif
357
358#samsung resampler
359LOCAL_C_INCLUDES += sec_audio/voipresampler
360LOCAL_SHARED_LIBRARIES += libsamsungVoipResampler
361
362ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_EXTERNAL_MODEM_TYPE,MSM8937LA30))
363    LOCAL_CFLAGS += -DMODEM_MSM8937LA30
364endif
365
366ifeq ($(findstring DUALCP,$(call spf_get,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_TYPE_MULTI_SIM)),DUALCP)
367ifeq ($(filter MDM%,$(call spf_get,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_EXTERNAL_MODEM_TYPE)),)
368    LOCAL_C_INCLUDES += $(TOP)/hardware/ril/libsecril-client
369    LOCAL_SHARED_LIBRARIES += libsecril-client
370    LOCAL_SHARED_LIBRARIES += libaudio-ril
371    LOCAL_C_INCLUDES += $(TOP)/vendor/samsung/frameworks/audio/audioril
372endif
373endif
374
375#add for csc feature
376LOCAL_C_INCLUDES += vendor/samsung/configs/feature/CscFeature/libsecnativefeature
377LOCAL_SHARED_LIBRARIES += libsecnativefeature
378
379# [SAMSUNG] To support the effects for the offload
380LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/audioeffect_offload
381
382ifeq ($(SEC_PRODUCT_SHIP),false)
383    LOCAL_CFLAGS += -DAUDIO_CORE_UTILS
384    LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/audiocoreutils
385    LOCAL_SHARED_LIBRARIES += libsecaudiocoreutils
386else ifeq ($(TARGET_BUILD_VARIANT), eng)
387    LOCAL_CFLAGS += -DAUDIO_CORE_UTILS
388    LOCAL_C_INCLUDES += vendor/samsung/frameworks/audio/audiocoreutils
389    LOCAL_SHARED_LIBRARIES += libsecaudiocoreutils
390endif
391ifeq (true,$(call spf_check,SEC_PRODUCT_FEATURE_AUDIO_CONFIG_CORE_FX_FRAMEWORK_VERSION,3.0))
392    LOCAL_CFLAGS += -DAUDIOCORE_FX_FRAMEWORK_V3
393endif
394
395LOCAL_CFLAGS += -Wall -Werror -Wno-unused-function
396LOCAL_COPY_HEADERS_TO   := mm-audio
397LOCAL_COPY_HEADERS      := audio_extn/audio_defs.h
398
399LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM)
400
401LOCAL_MODULE_RELATIVE_PATH := hw
402
403LOCAL_MULTILIB := 32
404
405LOCAL_MODULE_TAGS := optional
406
407include $(BUILD_SHARED_LIBRARY)
408
409endif
410Last source parsed date : 2017-07-06 PM 04:56:44
时间: 2024-10-21 09:05:00

回去看linux的指令的相关文章

回去看linux的指令2

SYNC CL : MSM8953 @ CL#:12212299 PROJECT PATH : // Platform / N / NILE / COMBINATION / MSM8953 Cross Reference: Android.mkxref: /android/vendor/samsung/frameworks/audio/common_defines/Android.mk HomeHistoryAnnotateLine#NavigateRawDownload only in /an

Linux shell 指令

Linux shell指令运行的原理: Linux严格意义上说的是一个操作系统,我们称之为"核心(kernel)" ,但我们一般用户,不能直接使用kernel.而是通过 kernel的"外壳"程序,也就是所谓的shell,来与kernel沟通.shell对于Linux,有相同的作用,主要是对我们的指令进行解析,解析指令给Linux内核.反馈结果在通过内核运行出结果,通过shell解析给用户. ls指令 -a 列出目录下的所有文件,包括以.开头的隐含文件. cd命令

Linux基本指令

1.Linux常用的查找命令 在Linux下经常会使用到两个查找命令grep和find.其中grep命令常用作包含某个字符串的文件:而find常用于查找匹配制定文件名的文件. grep命令 其实grep命令是Linux当中一个非常强大的搜索工具,这里之作简单的做简单的字符串匹配查找的相关介绍,大牛勿喷呀,方便日后查阅写给自己的. grep 要查找的字符串 查找路径 要查找的文件列表(用空格隔开) 参数     //grep查找字符串的格式 常用参数:-R 递归查找 -n 显示匹配的文件行号 eg

Linux相关指令

Linux相关指令 1.find文件搜索功能 find [目录列表] [匹配参数] [匹配标准] -name :按文件名称进行搜索 -group :按文件所属组进行搜索 -user :按文件拥有者进行搜索 例1:以-name作为搜索条件进行搜索 例2:以-group作为搜索条件进行搜索 例3:以-user作为搜索条件进行搜索 2.df磁盘相关指令 df :查看磁盘信息 -l :locate缩写,查看本地磁盘信息 -h :以1024进制显示磁盘空间 -H :以1000进制显示磁盘空间 -T :显示

Linux压缩指令

1.windows系统和Linux系统的压缩文件只有zip格式的是通用的 2.windows系统可以解压几乎所有的Linux压缩格式 3.Linux压缩指令 gzip 指令 格式: gzip 压缩的文件名 说明: 压缩后的文件名自动叫做 原文件名.gz gzip只能压缩.解压缩文件,不能操作目录,操作不保留源文件  gzip –d 或者 gunzip解压缩 tar 指令 格式: 压缩 tar –zcvf 压缩后名称 压缩的文件或目录 解压 tar –zxvf 解压的文件名 说明: 压缩后的文件名

linux dd指令

ghost和g4l 安装操作系统,速度太慢,整个过程太冗长乏味了. 安装过程中,需要回答若干问题,系统需要安装无数个软件,创建和写入无数的文件.因为涉及到大量的文件定位和读写,速度一定是快不起来的. Windows下我们常常使用ghost系统来备份和刻录操作系统.ghost可以clone整个系统的镜像,然后在新的电脑上恢复,相当简单.用ghost系统安装操作系统比使用安装光盘安装系统要快捷多了,也不需要回答任何问题了. 那么,我们能不能用ghost来备份和恢复Linux系统呢. 答案是不行.因为

Linux 学习一 Linux常用指令,常用目录,Vi编辑器

1. Linux常用指令 常用指令 功能 startx 进入图形界面 Shutdown -h now 关机 Shutdown -r now  或者 reboot 重启 Su - 切换管理员 logout 注销 Ls   或者 dir 当前目录所有文件 Ls -l 当前目录所有文件详细信息 cd 切换目录 pwd 列出当前目录路径 Useradd XXX 添加用户XXX Passwd XXX 给用户XXX修改密码 Userdel XXX 删除用户XXX Userdel -r XXX 删除用户XXX

linux将指令加入开机启动或加入环境变量

以mongodb运行指令为例,/usr/local/webserver/mongodb/bin/mongo 1,linux将指令加入环境变量PATH 简单说PATH就是一组路径的字符串变量,当你输入的命令不带任何路径时,LINUX会在PATH记录的路径中查找该命令.有的话则执行,不存在则提示命令找不到.比如在根目录/下可以输入命令ls,在/usr目录下也可以输入ls,但其实ls命令根本不在这个两个目录下,当你输入ls命令时LINUX会去/bin,/usr/bin,/sbin等目录寻找该命令.而P

看linux连接进程占用的实时流量iftop netatop NetHogs

因为新工厂的机器上面的业务混合部署非常严重,加上内网外网共用一个网卡(这个更不可思议),导致有时要定位一些进程流量的问题非常困难,所以最近花了点时间在网上搜集了一把  (aptitude search  top$),粗略比较了一下,大概结果如下 atop          — 跟 sar 类似,配合内核模块可以做到进程级别的流量统计(netatop)  ,最方便的是 aptitude 可以直接安装(包括内核模块),软件本身到今年一直有更新,[推荐学习] htop          –  类似 t